/*
package edu.bbu.bibliospring.backend.model;

import javax.persistence.*;
import java.util.Date;

*/
/**
 * Created by anna on 6/4/14.
 *//*


@Entity
@Table(name = "reservation")
@IdClass(BaseEntity.class)
public class Reservation extends BaseEntity {

    private static final long serialVersionUID = 1L;
    @OneToOne
    //@JoinColumn(name = "BOOK_FK")
    protected Book book;
    @OneToOne
//    @JoinColumn(name = "RESERVER_FK")
    protected Profile reserver;
    @OneToOne
//    @JoinColumn(name = "LOCATION_FK")
    protected Location reservedFrom;
    @Temporal(TemporalType.DATE)
    protected Date reservedSince;
    @Temporal(TemporalType.DATE)
    protected Date reservedUntil;

    public Reservation() {}

    public Reservation(Book book, Profile reserver, Location reservedFrom, Date reservedSince, Date reservedUntil) {
        this.book = book;
        this.reserver = reserver;
        this.reservedFrom = reservedFrom;
        this.reservedSince = reservedSince;
        this.reservedUntil = reservedUntil;
    }

    public Book getBook() {
        return book;
    }

    public void setBook(Book book) {
        this.book = book;
    }

    public Profile getReserver() {
        return reserver;
    }

    public void setReserver(Profile reserver) {
        this.reserver = reserver;
    }

    public Location getReservedFrom() {
        return reservedFrom;
    }

    public void setReservedFrom(Location reservedFrom) {
        this.reservedFrom = reservedFrom;
    }

    public Date getReservedSince() {
        return reservedSince;
    }

    public void setReservedSince(Date reservedSince) {
        this.reservedSince = reservedSince;
    }

    public Date getReservedUntil() {
        return reservedUntil;
    }

    public void setReservedUntil(Date reservedUntil) {
        this.reservedUntil = reservedUntil;
    }
}
*/
